package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserEmergencycontactBeanMapper;
import com.billing.model.dao.UserEmergencycontactBufferBeanMapper;
import com.billing.model.entity.TUserEmergencycontact;
import com.billing.model.entity.TUserEmergencycontactBuffer;
import com.billing.service.UserEmergencycontactBufferService;
import com.billing.service.UserEmergencycontactService;
@Service
public class UserEmergencycontactBufferServiceImpl implements UserEmergencycontactBufferService {
	@Resource
	private UserEmergencycontactBufferBeanMapper userEmergencycontactCopyBeanMapper; 
	public int insertTUserEmergencycontact(TUserEmergencycontactBuffer userEmergencycontact) {
		return userEmergencycontactCopyBeanMapper.insertTUserEmergencycontact(userEmergencycontact);
	}
	public TUserEmergencycontactBuffer selectUserEmergencycontactByUid(String userid) {
		return userEmergencycontactCopyBeanMapper.selectUserEmergencycontactByUid(userid);
	}
	public int updateUserEmergencycontact(TUserEmergencycontactBuffer userEmergencycontact) {
		return userEmergencycontactCopyBeanMapper.updateUserEmergencycontact(userEmergencycontact);
	}
	@Override
	public TUserEmergencycontactBuffer selectUserEmergencycontactByid(String id) {
		return userEmergencycontactCopyBeanMapper.selectUserEmergencycontactByid(id);
	}
	@Override
	public int insertTUserEmergencycontactByMain(TUserEmergencycontact userEmergencycontact) {
		return userEmergencycontactCopyBeanMapper.insertTUserEmergencycontactByMain(userEmergencycontact);
	}
	@Override
	public int updateUserEmergencycontactByMain(TUserEmergencycontact userEmergencycontact) {
		return userEmergencycontactCopyBeanMapper.updateUserEmergencycontactByMain(userEmergencycontact);
	}

}
